import request from '@/util/request'; // 导入 Axios 实例

export default{
    //获取所有事件列表
    getEventList() {
        return request({
            url: '/todoEvent/list',
            method: 'get',
        });
    },
    //根据用户ID获取事件列表
    getEventListByUserId() {
        return request({
            url: '/todoEvent/listByUserId',
            method: 'get',
        });
    },
    //创建事件
    createTodoEvent(data) {
        return request({
            url: '/todoEvent/create',
            method: 'post',
            data
        });
    },
    //app端删除事件
    deleteTodoEvent(id) {
        return request({
            url: `/todoEvent/deleteTodoById/${id}`,
            method: 'delete',
        });
    },
   
}
            